using System;
using System.Collections.Generic;
using System.Text;
using Outlook = Microsoft.Office.Interop.Outlook;
using Office = Microsoft.Office.Core;

namespace GCalSync.Core
{
    class OutlookCalendar
    {

        public static Outlook.MAPIFolder GetCalendar()
        {
            // Get Appointment/Calendar Folder.
            Outlook.MAPIFolder appFolder = GlobalObjects.outlookApplication.GetNamespace("MAPI").GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar);

            return appFolder;

        }

        public static Outlook.MAPIFolder GetCalendar(string folderName)
        {
            // Get Appointment/Calendar Folder.
            Outlook.MAPIFolder appFolder = GlobalObjects.outlookApplication.GetNamespace("MAPI").Folders[folderName];

            return appFolder;
        }

    }
}
